home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
028a
/
repzip.zip
/
REPZIP.DOC
< prev
next >
Wrap
Text File
|
1991-02-24
|
5KB
|
135 lines
REPZIP by Lindsay McCann. February 24, 1991.
-----------------------------------------------------------------------
There is some important information at the end of this document.
-----------------------------------------------------------------------
------------
Introduction (Documentation is very brief & worth reading)
------------
REPZIP is intended to permit the use of repeated operations with PKZIP.
It is a Turbo C program that uses the findfirst() and findnext() functions
to repeatedly invoke PKZIP for every filename that matches the file
specification provided by the REPZIP user. Of course, you get the
source code, the executable file, and the object file for FREE.
---------------------
Setting Zipfile Dates
---------------------
For example, you might wish to set the date of every zipfile in a
directory to the most recently dated file within the zipfile. This is
useful if you download ZIP files from Bulletin Board Systems which often
bear file dates that do not reflect the date of the files found within
the archive. A very old version of backgammon in BASIC, created in 1984
may have be uploaded recently. It would be handy to attach the date the
game was created to the date of the zipfile itself. In that way, the date
of the zipfile gives you a good idea of how recent its contents truly are.
With PKZIP you can accomplish this on a file by file basis:
<C:\TELIX\DOWN> PKZIP -o -d <zipfile name> abcdefgh.ijk
where "abcdefgh.ijk" is the name of a file that does not exist in the zipfile.
To make it easier to do this to many files at once, use REPZIP. You run
REPZIP exactly as you would PKZIP. All the switches and filenames are
passed directly through to PKZIP via the Turbo C spawnv() function. Instead
of providing a zipfile name you may specify a wildcard. The example above
could be applied to an entire directory of zipfiles as follows:
<C:\TELIX\DOWN> REPZIP -o -d *.ZIP abcdefgh.ijk
(Aside: this technique is thwarted if there is a very recent BBS advertisement
file in the zipfile as the date of the advertisement may be attached to
the archive).
-----------------------------------------
Removing BBS Advertisements from Zipfiles
-----------------------------------------
You can use REPZIP to remove BBS advertisement files from every zipfile
in a directory. This is done one file at a time using PKZIP as follows:
<C:\TELIX\DOWN> PKZIP -d <zipfile name> readme.ros sound.msg ads_bbs.txt
Using REPZIP, you would type:
<C:\TELIX\DOWN> REPZIP -d *.ZIP readme.ros sound.msg ads_bbs.txt
This will remove from every zipfile in a directory all files with the
name "readme.ros", "sound.msg", and "ads_bbs.txt". Incidentally, these
are three commonly occurring BBS advertisement files.
-------------------------------------------------
Removing or Adding Comments to a list of Zipfiles
-------------------------------------------------
You might also want to remove all zipfile comments from every zipfile in
a directory. To do this on a file by file basis using PKZIP:
<C:\TELIX\DOWN> PKZIP -z <zipfile name>
REPZIP can apply this command to every zipfile in the current directory:
<C:\TELIX\DOWN> REPZIP -z *.ZIP
You can improve on this by using input redirection as follows:
<C:\TELIX\DOWN> REPZIP -z *.ZIP < RETURNS.TXT
where RETURNS.TXT is a file with nothing but 300 or so carriage returns.
This will cause PKZIP to take its input from RETURNS.TXT rather than from
the keyboard thereby saving you the trouble of pressing the <Enter> key
each time you want to delete a zipfile comment.
-----
Notes
-----
REPZIP assumes a default file extension for the zipfile of .ZIP (naturally).
You may specify another extension or use wildcards to specify a range of
other extensions for example:
<C:\TELIX\DOWN> REPZIP -v *.*
will give you a "view" of every file in the directory whether or not it ends
in .ZIP. Naturally, if the file is not a zipfile, PKZIP will not be able to
process it.
REPZIP (for now) will only operate on Zipfiles in the current directory.
To halt program execution, press and hold Ctrl-C or Press Ctrl-Break repeatedly
_________________ DIRE WARNING FOLLOWS __________________________________
You get this software free. You use it at your OWN risk. I do not
make any representations or warranties as to its fitness for use by
you. I have made my best efforts to ensure the software works well
and will be useful to you however, I owe you NO DUTY OF CARE.
USE THIS SOFTWARE AT YOUR OWN RISK OR DO NOT USE IT AT ALL !
____________________________________________________________________________
Author: Lindsay McCann
200 Balliol Street #1111
Toronto, ON M4S 1C6
(416) 489-7426
Hangouts: Compuserve 73770,1515
RoseMedia
Canada Remote Systems
If you are interested in this program or can suggest some enhancements, I
would like to hear from you.
----------------------------------------------------------------------------
End of REPZIP.DOC